//
//  ExchangeListCollectionViewCell.m
//  ZDB
//
//  Created by 微笑吧阳光 on 2020/3/19.
//  Copyright © 2020 ZDB. All rights reserved.
//

#import "ExchangeListCollectionViewCell.h"

@implementation ExchangeListCollectionViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    KViewBorder(self.imageCover, [UIColor colorWithHexString:@"#d2d2d2"], 1);
    KViewRadius(self.imageCover, 10);
}

-(void)setModell:(ZDBExchangeModel *)modell{
    
    _modell = modell;
   // [NSURL URLWithString:modell.goodsUrl]
    //kURLforString(modell.goodsUrl)
    [self.imageCover sd_setImageWithURL:[NSURL URLWithString:modell.goodsUrl] placeholderImage:CoverPlaceHolderImage];
    self.nameLab.text = modell.goodsName;
    self.number.text = [NSString stringWithFormat:@"已兑换%@件",kStringForNumber(modell.exchangeNumber)];
    self.jifenNum.text = [NSString stringWithFormat:@"%@积分",kStringForNumber(modell.integral)];

}
@end
